package cn.dingdan.sercice.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.dingdan.dao.BossDao;
import cn.dingdan.pojo.Boss;
import cn.dingdan.sercice.BossService;

@Service("bossServiceImpl")
public class BossServiceImpl implements BossService{
	
	@Resource(name="bossDao")
	private BossDao bossDao;
	
	/**
	 * 登录的方法
	 */
	@Override
	public Boss getLogin(Boss boss) {
		return bossDao.getLogin(boss);
	}

	@Override
	public int updateBoss(Boss boss) {
		return bossDao.updateBoss(boss);
	}

	@Override
	public Boss getBossPad(Integer userId, String userPassword) {
		return bossDao.getBossPad(userId,userPassword);
	}
	
}
